﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using STT.Business;
using STT.Entities;

using STT.Layer.Connection;
using System.Data;

namespace STT.Report
{
    public partial class ViewKhoaHoc : System.Web.UI.Page
    {
          public string nguoitao;
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnIN_Click(object sender, EventArgs e)
        {
            nguoitao = Session["TenDN"].ToString();
            DataTable dt = BTbKhoaHoc.SelectAll_Xuat(int.Parse(ddlKH.SelectedValue), nguoitao);
            rpvKhoaHoc.Visible = true;
            rpvKhoaHoc.LocalReport.ReportPath = "RDLC\\KhoaHoc.rdlc";
            rpvKhoaHoc.LocalReport.DataSources.Clear();
            rpvKhoaHoc.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", dt));
        }
    }
}